<%= error_messages_for 'book' %>

<p><label for="book_name">书名:</label><br/>
<%= text_area 'book', 'book_name', :cols => "30" ,:rows => "5"%></p>

<p><label for="publish_id">出版社:</label><br/>
<%= collection_select 'book', 'publish_id' , @publishes, :id , :publish_name%>

<p><label for="author">作者:</label><br/>
<%= text_field 'book', 'author'  %></p>

<p><label for="price">价格:</label><br/>
<%= text_field 'book', 'price'  %></p>

<p><label for="buy_date">购买日期:</label><br/>
<%= date_select 'book', 'buy_date' , :order => [:year , :month ,:day]  %></p>

<p><label for="lt_code">Leadtone编码:</label><br/>
<%= text_field 'book', 'lt_code'  %></p>

<p><label for="pic_url">封面图片地址:</label><br/>
<%= text_field 'book', 'pic_url'  %></p>

<p><%= hidden_field 'book', 'book_status_id'%></p>


